package com.zx.map.dao;

import com.zx.map.dao.model.ShareProfitDetailLog;
import com.zx.map.dao.model.ShareProfitDetailLogExample;
import org.springframework.dao.DataAccessException;

import java.util.List;

public interface ShareProfitDetailLogDao {

    /**
     * 新增
     *
     * @param shareProfitDetailLog
     * @return
     * @throws DataAccessException
     */
    public String add(ShareProfitDetailLog shareProfitDetailLog) throws DataAccessException;

    /**
     * 更新
     *
     * @param shareProfitDetailLog
     * @return
     * @throws DataAccessException
     */
    public String update(ShareProfitDetailLog shareProfitDetailLog) throws DataAccessException;

    /**
     * 按主键删除
     *
     * @param shareProfitDetailLog
     * @throws DataAccessException
     */
    public void deleteByPrimaryKey(ShareProfitDetailLog shareProfitDetailLog) throws DataAccessException;

    /**
     * 删除
     *
     * @param example
     * @throws DataAccessException
     */
    public void delete(ShareProfitDetailLogExample example);

    /**
     * 根据Model查找List
     *
     * @param example
     * @return
     * @throws DataAccessException
     */
    public List<ShareProfitDetailLog> getListByExample(ShareProfitDetailLogExample example) throws DataAccessException;

    /**
     * 分页查找
     */
    public List<ShareProfitDetailLog> getPageByExample(int pageSize, int pageBegin,
                                                       ShareProfitDetailLogExample example) throws DataAccessException;

    public int countListByExample(ShareProfitDetailLogExample example);

    /**
     * 统计总收益
     * @param example
     * @return
     */
    Double queryTotalSpDetailAmtByExample(ShareProfitDetailLogExample example);

}
